#!/bin/bash
if [ $# -ne 1  ]
then
    echo "Usage: x60cmFOneSingleField.sh prefix"
    echo "prefix is the first 14 character of the fits name, like M151016_C00027 "
    exit 0
fi

fitnameprefix=$1
#ra=$2
#dec=$3
fitfilelist=`echo $fitnameprefix | awk '{print($1"*.fit")}'`
ls $fitfilelist >list
for Fitfile in `cat list`
do
    echo $Fitfile
    x60cmF.sh $Fitfile
done
